import service_plugin
import json

with open('tls/client1.crt') as file:
    cert = file.read()
with open('tls/client1.key') as file:
    key = file.read()

params = {
    "message": "helloWorld"
}

# json params
proxy = service_plugin.Proxy("localhost", cert, key);
result = proxy.post_one(json.dumps(params))

print(result)

# upload file
result = proxy.upload_file("tls/upload_file.txt")
print(result)